<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!-- <meta name="language" content="en" /> -->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div id="page">

<div id="header">
	<div id="branding">
	
	<div id="login" class="not_logged_in">
	    <?php 
	    	if (Yii::app()->user->isGuest) {
	    		echo CHtml::link(CHtml::image('http://www.yiiframework.com/forum/public/style_images/master/key.png').' '.Yii::t('cms', 'Login'),array('/site/login'));
	    		echo CHtml::link(CHtml::image('http://www.yiiframework.com/forum/public/style_images/master/help.png').' '.Yii::t('cms', 'Help'),array('/site/help'));
	    	} else {
	    		echo CHtml::link(Yii::t('cms', 'Logout').' ('.Yii::app()->user->name.')',array('/site/logout'));
	    		echo CHtml::link(CHtml::image('http://www.yiiframework.com/forum/public/style_images/master/help.png').' '.Yii::t('cms', 'Help'),array('/site/help'));
	    	}
	    ?>
	</div>
	</div>

        <div id="mainmenu">
                <?php $this->widget('application.components.MyMenu',array(
                        'items'=>array(
                                array('label'=>Yii::t('cms', 'Users'), 'url'=>array('/user/index')),
                                array('label'=>Yii::t('cms', 'Payments'), 'url'=>array('/payment/index')),
                                array('label'=>Yii::t('cms', 'Packets'), 'url'=>array('/packet/index')),
                                array('label'=>Yii::t('cms', 'Speeds'), 'url'=>array('/speed/index')),
                                array('label'=>Yii::t('cms', 'About'), 'url'=>array('/site/page', 'view'=>'about')),
                                array('label'=>Yii::t('cms', 'Contact'), 'url'=>array('/site/contact')),
                        ),
                )); ?>
        </div><!-- mainmenu -->
        
	<?php $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->breadcrumbs,
		'htmlOptions'=>array('id'=>'breadcrumbs'),
		'homeLink'=>CHtml::link(Yii::t('cms', 'Home'),array('/site/index')),
	)); ?><!-- breadcrumbs -->
</div><!-- header -->

<div id="content">
	<?php echo $content; ?>
</div><!-- content -->

<div id="footer">
	<?php echo CHtml::link('English',array('','l'=>'en')).' ';
	echo CHtml::link('По-русски',array('','l'=>'ru')).' ';
	echo CHtml::link('Українською',array('','l'=>'uk'));
	?>
	<br/>
	Copyright &copy; <?php echo date('Y'); ?> by Prolink.<br/>
	Powered by <a href="mailto:paha@irpin.com">Paha</a>
</div><!-- footer -->

</div><!-- page -->
</body>
</html>